package com.qhhc.service;

import com.qhhc.entity.CarDealer;
import java.util.List;
import java.util.Map;

public interface ICarDealerService {
    
    List<CarDealer> getAllDealers();
    
    CarDealer getDealerById(Long id);
    
    CarDealer getDealerByUserId(Long userId);
    
    List<CarDealer> searchDealers(Map<String, Object> params);
    
    int addDealer(CarDealer dealer);
    
    int updateDealer(CarDealer dealer);
    
    int deleteDealer(Long id);
    
    int deleteDealerByUserId(Long userId);
    
    Map<String, Object> getDealersByPage(int pageNum, int pageSize);
} 